package com.hadoop.hdfsclientdemo.rpc.client;

import com.hadoop.hdfsclientdemo.rpc.ILogin;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;

import java.net.InetSocketAddress;

public class ClientDemo {

	public static void main(String[] args) throws Exception {

		ILogin login = RPC.getProxy(ILogin.class, 1L,
				new InetSocketAddress("localhost", 10000), new Configuration());

		String result = login.login("angelababy", "1314520");

		System.out.println(result);
	}

}
